package edu.xlh.travel.service;

import com.alibaba.fastjson.JSONArray;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.Hotel;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.HashMap;

public interface HotelService {
    String findAllHotel(Model model, Integer start, Integer limit, Integer price, Integer star);

    String findById(Model model, String id);

    String findAll(Model model, Integer start, Integer limit, String search_key);

    Result findAll(int page  , int size , HttpSession session);

    Hotel findByHotelId(String scenicId);

    Result edit(String id, Hotel hotel , HttpSession session);

    Result editMiaoShu(String id, Hotel hotel , HttpSession session);

    Result deleteById(String id, HashMap hashMap, HttpSession session);

    Result addHotel(Hotel hotel, HttpSession session);

    Result batchDelete(JSONArray jsonArray, HttpSession session);

    Result QueryHotelByCondition(Integer page, Integer limit, Hotel hotel, HttpSession session) throws IOException;
}
